package com.qihoo.finance.backup.reader;

import com.qihoo.finance.backup.Result;
import com.qihoo.finance.backup.StreamBacker;

/**
 * 流式Reader
 */
public abstract class StreamBackReader {

    protected StreamBacker streamBacker;

    public Result invoke(StreamBacker backer) throws Exception {
        this.streamBacker = backer;
        return invoke();
    }

    protected abstract Result invoke() throws Exception;
}
